package com.dji.sample.manage.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

@TableName("statistics_day_record_one")
public class StatisticsDayRecordOneEntity extends Model<StatisticsDayRecordOneEntity> {

    private static final long serialVersionUID = 1L;

    private Long id;

    private Double flyCount;

    private Double flyTime;

    private Double flyDistance;

    private String date;

    private Long orgId;

    private String orgCode;
    //总时间
    @TableField(exist = false)
    private String countTime;
    //总距离
    @TableField(exist = false)
    private String countDistance;

    public String getCountTime() {
        return countTime;
    }

    public void setCountTime(String countTime) {
        this.countTime = countTime;
    }

    public String getCountDistance() {
        return countDistance;
    }

    public void setCountDistance(String countDistance) {
        this.countDistance = countDistance;
    }

    public String getCountType() {
        return countType;
    }

    public void setCountType(String countType) {
        this.countType = countType;
    }

    //总次数
    @TableField(exist = false)
    private String countType;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    private String type;

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    private String sn;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Double getFlyCount() {
        return flyCount;
    }

    public void setFlyCount(Double flyCount) {
        this.flyCount = flyCount;
    }

    public Double getFlyTime() {
        return flyTime;
    }

    public void setFlyTime(Double flyTime) {
        this.flyTime = flyTime;
    }

    public Double getFlyDistance() {
        return flyDistance;
    }

    public void setFlyDistance(Double flyDistance) {
        this.flyDistance = flyDistance;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public Long getOrgId() {
        return orgId;
    }

    public void setOrgId(Long orgId) {
        this.orgId = orgId;
    }

    public String getOrgCode() {
        return orgCode;
    }

    public void setOrgCode(String orgCode) {
        this.orgCode = orgCode;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "StatisticsDayRecord{" +
                "id=" + id +
                ", flyCount=" + flyCount +
                ", flyTime=" + flyTime +
                ", flyDistance=" + flyDistance +
                ", date=" + date +
                ", orgId=" + orgId +
                ", orgCode=" + orgCode +
                "}";
    }
}

